import 'package:tender_flutter/page/supplier/model/certificate_entity.dart';

certificateEntityFromJson(CertificateEntity data, Map<String, dynamic> json) {
	if (json['qualificationType'] != null) {
		data.qualificationType = json['qualificationType'].toString();
	}
	if (json['code'] != null) {
		data.code = json['code'].toString();
	}
	if (json['endDate'] != null) {
		data.endDate = json['endDate'].toString();
	}
	if (json['licensePic'] != null) {
		data.licensePic = json['licensePic'].toString();
	}
	if (json['remark'] != null) {
		data.remark = json['remark'].toString();
	}
	if (json['id'] != null) {
		data.id = json['id'].toString();
	}
	if (json['title'] != null) {
		data.title = json['title'].toString();
	}
	if (json['issueDate'] != null) {
		data.issueDate = json['issueDate'].toString();
	}
	if (json['issueAuthority'] != null) {
		data.issueAuthority = json['issueAuthority'].toString();
	}
	if (json['regType'] != null) {
		data.regType = json['regType'].toString();
	}
	if (json['regLevel'] != null) {
		data.regLevel = json['regLevel'].toString();
	}
	if (json['createDate'] != null) {
		data.createDate = json['createDate'].toString();
	}
	return data;
}

Map<String, dynamic> certificateEntityToJson(CertificateEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['qualificationType'] = entity.qualificationType;
	data['code'] = entity.code;
	data['endDate'] = entity.endDate;
	data['licensePic'] = entity.licensePic;
	data['remark'] = entity.remark;
	data['id'] = entity.id;
	data['title'] = entity.title;
	data['issueDate'] = entity.issueDate;
	data['issueAuthority'] = entity.issueAuthority;
	data['regType'] = entity.regType;
	data['regLevel'] = entity.regLevel;
	data['createDate'] = entity.createDate;
	return data;
}